<head>
  <meta name="layout" content="main" />
  <title>Detalhes do Profissional</title>
  <g:javascript library="jquery"/>
  <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'datarel.css')}" />
</head>
<body>
  <div class="body">
    <g:ifAnyGranted role="ROLE_ADMIN">
    <h1>Exibir Informa&ccedil;&otilde;es do profissional</h1>
    <g:if test="${flash.message}">
      <div class="message">${flash.message}</div>
    </g:if>
    <div class="space-me">
      <!-- layout element -->
    </div>
    <div class="dialog">
      <div class="list">
        <table class="datarel" id="table">
          <colgroup width="30%" />
          <colgroup width="70%" />
          <tbody>
            <tr class="prop">
              <td valign="top" class="name">Nome de usu&aacute;rio:</td>
              <td valign="top" class="value">${person.username?.encodeAsHTML()}</td>
            </tr>
            <tr class="prop">
              <td valign="top" class="name">Nome Completo:</td>
              <td valign="top" class="value">${person.userRealName?.encodeAsHTML()}</td>
            </tr>

            <tr class="prop">
              <td valign="top" class="name">Status:</td>
              <td valign="top" class="value">${(person.enabled)?"Ativo":"Inativo"}</td>
            </tr>

            <tr class="prop">
              <td valign="top" class="name">Descri&ccedil;&atilde;o:</td>
              <td valign="top" class="value">${person.description?.encodeAsHTML()}</td>
            </tr>
            <g:if test="${person.emailShow}">
              <tr class="prop">
                <td valign="top" class="name">Email:</td>
                <td valign="top" class="value">${person.email?.encodeAsHTML()}</td>
              </tr>
            </g:if>
            <tr class="prop">
              <td valign="top" class="name">Grupo(s) de Acesso:</td>
              <td valign="top" class="value">
                <ul>
                  <g:each in="${roleNames}" var='name'>
                    <li>${name}</li>
                  </g:each>
                </ul>
              </td>
            </tr>

          </tbody>
        </table>
      </div>

      <div class="row">
        <g:form>
          <input type="hidden" name="id" value="${person.id}" />
          <div class="col_1"><g:actionSubmit class="cmd green save" value="Editar" action="edit" /></div>
          <div class="col_2"><g:actionSubmit class="cmd green save" onclick="return confirm('Tem certeza?');" value="Excluir" action="delete" /></div>
        </g:form>
      </div>
      </g:ifAnyGranted>
    </div>
  </div>
</body>
